package com.zjhcsoft.auth.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 码表
 * </p>
 *
 * @author wzya
 * @since 2021-03-29
 */
@TableName("BASE_CODE")
public class BaseCode implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 唯一标识
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 类型
     */
    private Integer codeType;

    /**
     * 码
     */
    private String code;

    /**
     * 值
     */
    private String codeValue;

    /**
     * 上级关联id 上一级码表id,空则为顶级码表
     */
    private Long upCodeId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getCodeType() {
        return codeType;
    }

    public void setCodeType(Integer codeType) {
        this.codeType = codeType;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCodeValue() {
        return codeValue;
    }

    public void setCodeValue(String codeValue) {
        this.codeValue = codeValue;
    }

    public Long getUpCodeId() {
        return upCodeId;
    }

    public void setUpCodeId(Long upCodeId) {
        this.upCodeId = upCodeId;
    }

    @Override
    public String toString() {
        return "BaseCode{" +
        "id=" + id +
        ", codeType=" + codeType +
        ", code=" + code +
        ", codeValue=" + codeValue +
        ", upCodeId=" + upCodeId +
        "}";
    }
}
